package cn.echase.ecare.yinfayun.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 评估信息结果表(AssessInfoResult)表实体类
 *
 * @author hanpeng
 * @date 2024-09-30 14:23:12
 */
@Data
public class AssessInfoResult {

    @TableId(type = IdType.AUTO)
    private Integer id;
    //柚纯字符标识
    private String ucId;
    //机构id
    private String tenantId;
    //评估信息编号
    private String assessNo;
    //评估模板id
    private String templateId;
    //评估结果json
    private String resultJson;

    /**
     * 1 暂存 2 已完成
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm", timezone = "GMT+8")
    private Date addTime;


    /**
     * 创建人
     */
    private String createBy;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 更新人
     */
    private String updateBy;


    /**
     * 逻辑删除 0 未删除 1删除
     */
    private Integer deleted;

    /**
     * 请求参数
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();

}
